#@layer()

#define css()
<style type="text/css">
    body {
        background-image: url(http://47.105.208.60:8080/wechat-api/images/loginbg.png);
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
    }

    table#table {
        margin-left: auto;
        margin-right: auto;
        background: #F7F7F7;
        opacity: 0.95;
        padding: 25px 15px 25px 10px;
        font: 12px Georgia, "Times New Roman", Times, serif;
        color: #888;
        text-shadow: 1px 1px 1px #FFF;
        border: 1px solid #E4E4E4;
        text-align: center;
    }

    body h1 {
        font-size: 50px;
        padding: 0px 0px 10px 40px;
        display: block;
        color: slategrey;
        text-align: center;
    }

    form#form .button {
        background: #E27575;
        border: none;
        padding: 10px 25px 10px 25px;
        margin: 10px 20px 10px 100px;
        color: #FFF;
        box-shadow: 1px 1px 5px #B6B6B6;
        border-radius: 3px;
        text-shadow: 1px 1px 1px #9E3F3F;
        cursor: pointer;
    }
</style>
#end

#define script()

<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<script>
    $("form").submit(function(){
        $.ajax({
            url: "http://47.105.208.60:8080/wechat-api/Blind_date/addCertificate",
            type:"post",
            //url:"http://localhost:8080/wechat-api/Blind_date/addCertificate",
            data:$("form").serialize(),
            dataType:"json",
            success:function(data) {
                if(data.code == 0) {
                    alert("成功");
                    window.opener.location.reload();
                    window.close();
                } else {
                    alert(data.info);
                }
            },
            error:function (data) {
                alert(data.code);
            }
        })
    })

</script>
#end

#define content()

<!--<body>-->

    <div style="margin-left: 200px; margin-top: 150px">

        <form id="form" action="" onsubmit="return false" method="post">
            <input type="hidden" name="id" value="#(id ??)" />
            证书编号：<input type="text" name="info9" placeholder="请输入证书编号"/>
            <input type="submit" name="submit" value="提交">
        </form>

    </div>
<!--</div>-->
#end

